<?php $this->_extends('_layouts/main_layout'); ?>
<?php $this->_block('title'); ?>
	Errors
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<div id="content" class="box">
	<h1>Errors</h1>
	<fieldset>
		<legend>Errors</legend>
		<table class="full-size" id="errors-tab">
			<thead>
				<tr>
					<th>Id</th>
					<th>Created</th>
					<th>Site</th>
					<th>Message</th>
				</tr>
			</thead>
			<tbody>
				<?php foreach($errors as $v): ?>
					<tr>
						<td><?php echo $v['id']; ?></td>
						<td><?php echo date('m/d/Y H:i:s', $v['created']); ?></td>
						<td><?php echo $v['site']; ?></td>
						<td><?php echo $v['message']; ?></td>
					</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
		<div class="pagination">
			<?php echo $pagination; ?>
		</div>
	</fieldset>
</div>
<?php $this->_endblock(); ?>